import { _hash, injectWMDA } from "./util";

const ConfigStatic = {
  DEFAULT: {
    BASE_TITLE: "Vue3模版 - 用例测试",
    BASE_ICON: "//j1.58cdn.com.cn/epfe/static/favicon.ico",
    BASE_HASH: _hash,
    BASE_URL: {
      development: "/",
      testing: "//j1.58cdn.com.cn/git/ep-fe/vue3-ts-vite-pc-spa/test",
      uat: "//j1.58cdn.com.cn/git/ep-fe/vue3-ts-vite-pc-spa/uat",
      online: "//j1.58cdn.com.cn/git/ep-fe/vue3-ts-vite-pc-spa/"
    },
    BASE_PROXY: {
      "/test": {
        target: "https://test.58v5.cn/",
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/test/, ""),
      },
    },
    BASE_INJECT: injectWMDA({
      appid: "000",
      key: "000",
      project_id: "000",
    }),
  },
};

export default ConfigStatic;
